const arr = [1, 2, 3, 4, 5];
console.log(arr.entries()); // Array Iterator
console.log(arr.keys()); // Array Iterator
console.log(arr.values()); // Array Iterator
// console.log(Object.fromEntries(arr.entries())); // {0: 1, 1: 2, 2: 3, 3: 4, 4: 5}
for (const [key, value] of arr.entries()) {
  console.log(key, value);
}
